﻿using AddressBook.Model.EF;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AddressBook
{

    public partial class FormMain : Form
    {
        private AddressBookServices service;
        public FormMain()
        {
            InitializeComponent();
            service = new AddressBookServices();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            LOVE frm = new LOVE();
            var result = frm.ShowDialog();
            if (result != DialogResult.OK)
            {
                //非正常登录 
                this.Close();
            }
        }

        private void btnOurFavor_Click(object sender, EventArgs e)
        {
            using (FormMainOurFavor newForm = new FormMainOurFavor())
            {
                newForm.ShowDialog();
            }
        }
    }
    }


